<%@ page language="java" pageEncoding="utf-8"%>
<%@ taglib prefix="security"
	uri="http://www.springframework.org/security/tags"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ include file="/common/taglibs.jsp"%>
<%@page import="com.core.orm.hibernate.SpringSecurityUtils"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head> 
		<title>user</title>
		<style type="text/css"> 
/* CSS Document */ 

#mytable { 
padding: 0; 
margin: 0; 
margin-top: -85px;
} 

caption { 
padding: 0 0 5px 0; 
width: 700px; 
font: italic 11px "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif; 
text-align: right; 
} 

th { 
font: bold 12px "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif; 
color: #4f6b72; 
border-right: 1px solid #C1DAD7; 
border-bottom: 1px solid #C1DAD7; 
border-top: 1px solid #C1DAD7; 
letter-spacing: 2px; 
text-transform: uppercase; 
text-align: left; 
padding: 6px 6px 6px 12px; 
background: #7190e0  no-repeat; 
} 
/*power by www.winshell.cn*/ 
th.nobg { 
border-top: 0; 
border-left: 0; 
border-right: 1px solid #C1DAD7; 
background: none; 
} 
td { 
border-right: 1px solid #C1DAD7; 
border-left: 1px solid #C1DAD7; 
border-bottom: 1px solid #C1DAD7; 
background: #fff; 
font-size:11px; 
padding: 6px 6px 6px 12px; 
color: #4f6b72; 
align:center;
} 
td.alt { 
background: #F5FAFA; 
color: #797268; 
} 
th.spec { 
border-left: 1px solid #C1DAD7; 
border-top: 0; 
background: #fff no-repeat; 
font: bold 10px "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif; 
} 
th.specalt { 
border-left: 1px solid #C1DAD7; 
border-top: 0; 
background: #f5fafa no-repeat; 
font: bold 10px "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif; 
color: #797268; 
} 
</style> 
	</head>
	<body>
	<security:authorize ifNotGranted="A_Administrator">
	<table id="mytable" width="100%" style="vertical-align: top;width:100%" cellspacing="0"> 
	</security:authorize>
	<security:authorize ifAnyGranted="A_Administrator">
	<table id="mytable"  style="vertical-align: top;width:100%" cellspacing="0"> 
	</security:authorize>
	<tr> 
<th scope="col">用户名</th> 
<th scope="col">查看</th> 
<security:authorize ifAnyGranted="A_Member">
<th scope="col">修改</th> 
</security:authorize>
<security:authorize ifAnyGranted="A_Administrator">
<th scope="col">删除&nbsp;&nbsp;(<a href="${ctx}/user/users/form.htm">新建用户</a>)</th> 
</security:authorize>
</tr> 
<s:iterator value="userList">
<tr>
		<td class="row"><s:property value="userName" /></td> 
		<td class="row"><a href="${ctx}/user/users/view.htm?id=${id}">查看</a></td> 
		<security:authorize ifAnyGranted="A_Member"><td class="row"><a href="${ctx}/user/users/preEdit.htm?id=${id}">修改</a></td></security:authorize>
		<security:authorize ifAnyGranted="A_Administrator"><td class="row"><a href="">删除</a></td></security:authorize><br>
</tr> 
</s:iterator>
</table> 
	</body>
</html>
